// leave this as div, bcz some table columns also have .message
div.message, p.message {
  padding: 8px 8px 8px 32px;
  line-height: 17px;
  border-width: 1px;
  border-style: solid;
  @extend %rounded-border;
  position: relative;
  margin-bottom: 8px;
  text-align: left;

  h1 {
    font-size: 14px;
    margin: 8px 0;
  }

  h1, h2 { margin-top: 0 }

  span.icon {
    position: absolute;
    left: 8px;
    top: 8px;
  }

  &.footnote {
    font-size: 10px;
    margin: 16px;
  }

  a {
    text-decoration: underline;

    &:hover { color: #000 }
  }

  ol {
    margin: 0 0 8px;
    padding-left: 20px;

    li {
      text-indent: 0;
      margin-bottom: 4px;
    }
  }
}

div.info {
  @extend div.message;
  color: $text-color;
  background-color: #eaf4f9;
  border-color: #0b5c84;
}

div.error {
  @extend div.message;
  background-color: #f1c9ca;
  color: #931f23;
}

div.warning, div.warn {
  @extend div.message;
  background-color: #f7efb8;
  color: #756f47;
}
